/**
 * 角色表
 */
import { BaseEntity } from 'egg-cool-entity';
import { Entity, Column } from 'typeorm';

@Entity({ name: 'role' })
export default class Role extends BaseEntity {
    // 用户名
    @Column({
        comment: '角色名称',
    })
    name: string;

    @Column({
        comment: '角色代码',
    })
    code: string;
}
